<template>
  <div>
    <el-card>
      <CategorySelector :isForbidden="scene===1" />
    </el-card>
    <el-card style="margin-top:10px">
      <SpuList v-if="scene===1" :visible.sync="scene" @setSpuInfo="currentSpuInfo=$event" />
      <SaveSpu v-if="scene===2" :visible.sync="scene" :currentSpuInfo="currentSpuInfo" />
      <SaveSku v-if="scene===3" :visible.sync="scene" />
    </el-card>
  </div>
</template>

<script>
import SpuList from './components/SpuList.vue'
import SaveSpu from './components/SaveSpu.vue'
import SaveSku from './components/SaveSku.vue'
export default {
  name: 'Spu',
  components: {
    SpuList,
    SaveSpu,
    SaveSku
  },
  data() {
    return {
      scene: 1, // 场景  场地  应用
      currentSpuInfo: {}
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
